package com.usian.controller;

import com.usian.feign.ProviderFeign;
import com.usian.model.pojos.Source;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/source")
public class SourceController {

    @Autowired
    private ProviderFeign providerFeign;

    @PostMapping("/list")
    public List<Source> list(){
        return providerFeign.list();
    }
}
